<template>
  <view>
    <wd-upload
      :action="action"
      name="file"
      :formData="fromDate"
      :successStatus="201"
    ></wd-upload>
  </view>
</template>

<script setup lang="ts">
import { ref } from "vue";
console.log(process);
// const action = ref('http://fluosport.com/tournament/uploadPlayers')
const action = ref("http://localhost:3000/upload-signup");
const fromDate = ref({});

onLoad((param) => {
  const categoryId = param.categoryId; // 这个需要传给接口
  fromDate.value = param;
});
</script>
